// 课程页列表页刷新选择分类
export const courseChange = function(vueContext) {
  const query = vueContext.$route.query
  if (query.categoryId) {
    vueContext.obj.categoryId = query.categoryId
  } else if (query.categoryTwoId) {
    vueContext.obj.categoryId = query.categoryTwoId
  } else if (query.categoryThreeId) {
    vueContext.obj.categoryId = query.categoryThreeId
  } else {
    vueContext.obj.categoryId = ''
  }
  if (query.courseName !== '') {
    vueContext.obj.courseName = query.courseName
  }
  if (query.isFree !== '') {
    vueContext.obj.isFree = query.isFree
  }
  vueContext.obj.pageCurrent = 1
}

// 实验页列表页刷新选择分类
export const experimentChange = function(vueContext) {
  const query = vueContext.$route.query
  vueContext.obj.zhuanye = query.zhuanye || ''
  vueContext.obj.kechengjibie = query.kechengjibie || ''
  vueContext.obj.kechengleixing = query.kechengleixing || ''
  vueContext.obj.shiyanleixing = query.shiyanleixing || ''
  vueContext.obj.mingcheng = query.mingcheng || ''
  vueContext.obj.pageCurrent = 1
}
// 全景页列表页刷新选择分类
export const sphereChange = function(vueContext) {
  const query = vueContext.$route.query
  vueContext.obj.mingcheng = query.mingcheng || ''
  vueContext.obj.pageCurrent = 1
}
// 新闻公告页列表页刷新选择分类
export const postChange = function(vueContext) {
  const query = vueContext.$route.query
  vueContext.obj.leixing = query.leixing || ''
  vueContext.obj.mingcheng = query.mingcheng || ''
  vueContext.obj.pageCurrent = 1
}
